package com.yuan.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Component //将组件加入容器种
@ConfigurationProperties(prefix = "mycar")
public class Car {
    //成员属性
    private String brand;

    private Integer price;

}
